export const http = (options) => {
	options.url = "https://admin.yongzhengxs.cn/api" + options.url;
	options.header = {
		"token": uni.getStorageSync('token') || ""
	}
	options.method = options.method
	return new Promise((resolve,reject) => {
		uni.request({
			...options,
			success(res) {
				resolve(res.data)
			}
		})
	})
}
